package com.demo.springcloud.exception;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/onException")
public class ExceptionTestController {

    @RequestMapping("/400")
    @ResponseBody
    public GlobalResult on_400(){
        throw new NullPointerException("null");
    }
}
